#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
from flask import Flask
from flask_sqlalchemy import SQLAlchemy

db = SQLAlchemy()

def create_app():
    app = Flask(__name__)
    app.config.from_pyfile('config.py')
    db.init_app(app)

    from app.test import bl

    app.register_blueprint(bl, url_prefix='/bl')
    return app
